#docker rmi -f debezium/connect:1.6
docker pull debezium/connect:1.6
rm -rf /cardone/docker/images/debezium/connect.1.6.tar
mkdir -p /cardone/docker/images/debezium
docker save debezium/connect:1.6 >/cardone/docker/images/debezium/connect.1.6.tar
#docker load < /cardone/docker/images/debezium/connect.1.6.tar

mkdir -p /cardone/datas/debezium/kafka/connect

docker node update --label-add cardone-debezium_debezium=true cardone-01-01

#rm -rf /cardone/datas/debezium

mkdir -p /cardone/datas/debezium

docker stack rm cardone-debezium

docker stack deploy -c /cardone/middlewares/debezium/prod.yml cardone-debezium

docker stack ps cardone-debezium

docker service logs cardone-debezium_debezium -f --tail 300
